Skip to content

feat(fleet): delegation feasibility check (additive, plugin-owned) - #12

Open
Baal-TehDriverman wants to merge 2 commits into
asmodaydoescoding:mainfrom
Baal-TehDriverman:feat/delegation-clean
Open

feat(fleet): delegation feasibility check (additive, plugin-owned)#12
Baal-TehDriverman wants to merge 2 commits into
asmodaydoescoding:mainfrom
Baal-TehDriverman:feat/delegation-clean

Conversation

@Baal-TehDriverman

Copy link
Copy Markdown

Can a bot's subtree absorb a delegation before routing it? This adds can_delegate_to(graph, sender, recipient, contract) — a purely graph-based structural check with zero protocol break and no host coupling.

Pure additions to fleet_graph_core.py:

  • subtree_nodes(graph, node, max_depth) — BFS subordinate tree walk
  • subtree_depth(graph, node) — maximum tree depth below a node
  • can_delegate_to(graph, sender, recipient, contract) — feasibility check

plugin_api.py: optional delegate_contract on POST /send, new /delegate-check endpoint for live feasibility previews in the desktop UI.

Tests: 24/24 delegation feasibility tests pass.

Research backing: DeAR 2608.17282 (capability grounding before routing), Formal Hierarchical 2607.11138 (stack-based depth enforcement).

Author criteria alignment: plugin-owned data only, additive (no API contract changes), incremental measured improvement.

Can a bot's subtree absorb a delegation before routing it? This adds
can_delegate_to(graph, sender, recipient, contract) — a purely graph-based
structural check with zero protocol break and no host coupling.

Pure additions to fleet_graph_core.py:
- subtree_nodes(graph, node, max_depth) — BFS subordinate tree walk
- subtree_depth(graph, node) — maximum tree depth below a node
- can_delegate_to(graph, sender, recipient, contract) — feasibility check

plugin_api.py: optional delegate_contract on POST /send, new /delegate-check
endpoint for live feasibility previews in the desktop UI.

Tests: 24/24 delegation feasibility tests pass.

Research backing: DeAR 2608.17282 (capability grounding before routing),
Formal Hierarchical 2607.11138 (stack-based depth enforcement).

Author criteria alignment: plugin-owned data only, additive (no API contract
changes), incremental measured improvement.
A 72-seat symbolic command overlay organized by Ars Goetia rank —
Kings, Dukes, Princes, Marquises, Earls, Presidents, Knight.

Uses Fleetgraph's starter pack system for preview-then-apply topology
installation. Each officer is a Hermes profile with SOUL.md directives,
rank metadata, and bounded operational postures.

Validates cleanly through starter_pack.py (fail-closed validator).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant